package dinner.web.libs;

import java.util.Map;
import java.util.TreeMap;

public class Cashe<K, T> {
	Map<K, T> map = new TreeMap<K, T>();

	public T getCachedData(K key) {
		return map.get(key);
	}

	public void putCachedData(K key, T data) {
		map.put(key, data);
	}

	public void removeCachedData(K key) {
		map.remove(key);
	}

	public void clearAll() {
		map.clear();
	}

}
